﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace ProjectCodeS.Models
{
    public class Client
    {
        public int Id { get; set; }
        [Required]
        public string FirstName { get; set; }
        [Required]
        public string LastName { get; set; }
       
        [Required]
        [DataType(DataType.PhoneNumber)]
        public string Phone { get; set; }


        public DateTime Created { get; set; }
        public DateTime LastEdited { get; set; }
        public DateTime LastAccessed { get; set; }

        public int StoreId { get; set; }
        public virtual Store Store { get; set; }
        public virtual ICollection<Ticket> Tickets { get; set; }
        
    }
}